package com.hao.tool.web.module.base.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * description
 *
 * @author RuiHaoZ on GZ.cmhk
 * @date 2019-11-22 23:38
 */
@Controller
@RequestMapping("")
public class BaseController {

    @GetMapping("/4042")
    public ModelAndView to4042() {
        ModelAndView mv = new ModelAndView("common/4042");
        return mv;
    }

    @GetMapping("/404")
    public ModelAndView to404() {
        ModelAndView mv = new ModelAndView("common/404");
        return mv;
    }

    @GetMapping("/box")
    public ModelAndView toBox() {
        ModelAndView mv = new ModelAndView("common/box");
        return mv;
    }

    @GetMapping("/coach")
    public ModelAndView toCoach() {
        ModelAndView mv = new ModelAndView("common/coach");
        return mv;
    }

    @GetMapping("/scan")
    public ModelAndView toScanCode() {
        ModelAndView mv = new ModelAndView("common/scan");
        return mv;
    }

    @GetMapping("/logview")
    public ModelAndView toLogView() {
        ModelAndView mv = new ModelAndView("runlog/index");
        return mv;
    }
}
